import request from '@/common/utils/request'
import {
	serv
} from '@/common/utils/config'

// 最近搜索列表展示
export function goodSearchHishory(data) {
	return request(serv.order + `/api/goodSearchkeyLog/getRecentKey`, {
		method: `post`,
		data: data
	})
}

// 热搜榜内容
export function getHotGoods(data) {
	return request(serv.order + `/api/searchHotkey/listHotkey`, {
		method: `post`,
		data: data
	})
}
//删除搜索历史记录
export function deleteSearchHishory(data) {
	return request(serv.order + `/api/goodSearchkeyLog/delete`, {
		method: `get`,
		data: data
	})
}
/**
 * 搜索联想词
 */
export function getRelativeWords(data) {
	return request(serv.order + `/api/goodSearchkeyLog/getRelWord`, {
		method: `get`,
		data: data
	})
}